package org.bastion.domain.service.impl

import org.bastion.domain.service.AlertService

class BasicAlertService extends AlertService {

  var alerts = List[String]()
  
  override def getAlertsClearAfterwards = {
    val clone = alerts
    alerts = List[String]()
    clone
  }
  
  override def alert(text: String) {
    println("AlertService.alert, text = " + text)
    alerts = text :: alerts
  }

}
